package com.hongxun.design.activitys;

import android.os.Bundle;
import android.view.View;

import com.hongxun.design.utils.soundUtil.SoundUtil;

/**
 * Created by zerdoor_pc on 2016/4/21.
 * 声音录制与播放
 */
public class SoundActivity extends BaseActivity {
    private SoundUtil sound;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.demo_voice_item);


    }

    @Override
    protected void onResume() {
        sound = SoundUtil.getIntence(this, "");
        super.onResume();
    }

    public void startRecord(View v) {
        sound.startRecod();
    }

    public void stopRecord(View v) {
        sound.stopRecod();
    }

    public void startPlay(View v) {
        sound.startPlay();
    }

    public void stopPlay(View v) {
        sound.stopPlay();
    }


}
